package com.todod.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.todod.dto.Dictdto;
import com.todod.entity.QueryEntry;
import com.todod.model.Dict;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author gsh
 * @since 2020-12-04
 */
public interface IDictService extends IService<Dict> {

	void updateState(Long userId, Long id, String state);

	Dict getDictByPcodeAndCode(String pcode, String code);

	void deleteData(Dict dict);

	List<Dict> getDictListByCode(String code);

	String getMaxCodeByCode(String code);

	List<Dict> getDictListByCode2(String code);

	List<Dict> getSysDictListByCode(String code);

	List<Dict> getList(QueryEntry queryEntry);

	List<Dict> getParentList(String code);

	List<Dict> getListByParentCode(String parentCode);

	Dict getDictByParentCodeAndCode(Long pId, String code);

	void saveData(Long userId, Dict dict, Long pId);

	void editData(Long userId, Dict dict);

	List<Dictdto> getbyparendcode(String string);

	List<Dict> getDictEntryByDictTypeIdDictId(String string, List<String> typeList);

	List<Dict> getDictByParentCodeBesidesCode(String parentCode, List<String> typeList);

	Dict getDictByPcodeAndName(String string, String typeName);

}
